<?php
class IndexController extends Controller {
    private $nav = null;
    public function __construct() {
        parent::__construct();
        //$this->nav = new NavModel();
    }
    public function index() {
        // $this->tpl->assign('frontTenNav',$this->nav->findFrontTenParentNav());
        // $this->tpl->display(FRONT_STYLE.'public/'.'index.tpl');
    }
    //验证码
	public function validateCode() {
		$vc = new ValidateCode();
		$vc->doimg();
		$_SESSION['code'] = $vc->getCode();
	}
}